type MyReturnType<T  extends (...args: any[]) => any> = T extends (...args:any[])=> infer P?P:undefined;
